import grpc

from example import date_pb2, date_pb2_grpc

_HOST = 'localhost'
_PORT = '8080'

def run():
    conn = grpc.insecure_channel(_HOST + ':' + _PORT)
    client = date_pb2_grpc.FormatDataStub(channel=conn)

    response = client.Upper(date_pb2.UpperRequest(word="hello world"))

    print(f"recevied : {response}")
